// pages/aboutme/aboutme.js
const mynote_db = wx.cloud.database().collection('mynote')
import resource from '../../../libs/resource'

Page({
  data: {
    online: true,
    abouteme: []
  },
  onLoad: function (options) {
    this.setData({
      online: getApp().globalData.onling
    })
    this.get_abouteme_data();
  },
  //获取数据库
  get_abouteme_data() {
    mynote_db.where({
      flag: 'aboutme'
    }).get({
      success: res => {
        console.log(res.data[1])
        this.setData({
          abouteme: res.data
        })
      }
    })
  }
})